package cn.yunhe.biz;

import lombok.Data;
import org.springframework.stereotype.Component;

import java.text.SimpleDateFormat;
import java.util.Date;

@Data

public class LogleUtil {
    public void log(String type, int num) {
        System.out.println("日志" + currentTime() + type + "手机" + num + "部");

    }

    public String currentTime() {
        SimpleDateFormat sdf = new SimpleDateFormat();

        return sdf.format(new Date());
    }

}
